<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>监测信息</title>
    <link rel="stylesheet" th:href="@{/static/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/static/admin/style.css}" media="all">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/admin/style.css}" media="all">
    <link rel="stylesheet" th:href="@{/layui/css/element-index.css}" media="all">
    <script type="text/html" id="indexTpl">
        {{d.LAY_TABLE_INDEX+1}}
    </script>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form layui-form-pane" action="">
                <input name="id" th:value="${obj?.id}" class="layui-input layui-hide">
                <div class="layui-form-item">
                    <label class="layui-form-label">监测人</label>
                    <div class="layui-input-block">
                        <input type="text" name="monitor" th:value="${obj?.monitor}" lay-verify="required" placeholder="请输入监测人" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">监测时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="monitoringtime" id="monitoringtime" th:value="${obj?.monitoringtimeStr}" lay-verify="required" placeholder="请选择监测时间" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">空气质量指标</label>
                    <div class="layui-input-block">
                        <input type="text" name="airquality" th:value="${obj?.airquality}" lay-verify="required" placeholder="请输入空气质量指标" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">水质指标</label>
                    <div class="layui-input-block">
                        <input type="text" name="waterquality" th:value="${obj?.waterquality}" lay-verify="required" placeholder="请输入水质指标" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">监测地点</label>
                    <div class="layui-input-block">
                        <input type="text" name="monitoringlocation" th:value="${obj?.monitoringlocation}" lay-verify="required" placeholder="请输入监测地点" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-hide">
                    <input type="button" lay-submit lay-filter="LAY-front-submit" id="LAY-front-submit" value="确认">
                </div>
            </form>
        </div>
    </div>
</div>

<script th:src="@{/static/layui/layui.js}"></script>
<script  th:src="@{/layui/layui.js}"></script>
<script src="/layui/lay/modules/jquery.js" th:src="@{/layui/lay/modules/jquery.js}"></script>
<script src="/layui/lay/modules/table.js" th:src="@{/layui/lay/modules/table.js}"></script>
<script src="/layui/lay/modules/element-index.js" th:src="@{/layui/lay/modules/element-index.js}"></script>
<script>
    layui.use(['form','laydate'],function () {
        var $ = layui.$;
        var laydate = layui.laydate;
        var form = layui.form;

        //支持日期控件
        laydate.render({
            elem:'#monitoringtime',  //但这里日期能显示出来 但是 闪退
            trigger:'click'
        });


    });
</script>
</body>
</html>